/**
 * @Author: 陈新林
 * @Date: 2020-12-23
 * @Last Modified by: chenxinlin
 * @Last Modified time: 2021-07-01 14:38
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/branchEdit`, {params})

// 保存
export const doSave = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/branchEdit/doSave`, params)

// 根据ids批量更新启用标志
export const postUpdateStatusByIds = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/branchEdit/updateStatusByIds/${params.available}`, params.ids)

// 查询经销商有没有维护过电池回收网点
export const findDealer = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/branchEdit/findDealer`, params);

//批量导入电池回收网点
export const putImportConfirm = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/branchEdit/putImportConfirm`, params);

//获取当前经销商网点
export const getCurrentDealerBranch = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/branchEdit/getCurrentDealerBranch`, {params})
